home *** CD-ROM | disk | FTP | other *** search
/ Personal Computer World 2009 February / PCWFEB09.iso / Software / Linux / Kubuntu 8.10 / kubuntu-8.10-desktop-i386.iso / casper / filesystem.squashfs / var / lib / dpkg / info / ubuntu-keyring.postinst < prev    next >
Text File  |  2008-03-03  |  511b  |  21 lines

  1. #!/bin/sh
  2.  
  3. # make sure apt knows about the new keys
  4. if [ -x /usr/bin/apt-key ]; then
  5.     /usr/bin/apt-key update
  6. fi
  7.  
  8. # the keyring in /var that gets fetched by apt-key net-update
  9. # if it does not yet exist, copy it to avoid uneeded net copy
  10. KEYRINGDIR="/var/lib/apt/keyrings"
  11. KEYRING="${KEYRINGDIR}/ubuntu-archive-keyring.gpg"
  12.  
  13. if ! test -d $KEYRINGDIR; then
  14.      mkdir -m 755 -p $KEYRINGDIR
  15. fi
  16.  
  17. if ! test -f $KEYRING; then
  18.      cp /usr/share/keyrings/ubuntu-archive-keyring.gpg $KEYRING
  19.      touch $KEYRING
  20. fi
  21.